package cn.edu.lingnan.mapper;

import cn.edu.lingnan.domain.dto.DepositDto;
import cn.edu.lingnan.domain.dto.WthdrawDto;
import cn.edu.lingnan.domain.pojo.*;
import cn.edu.lingnan.domain.vo.Card_UserVo;
import cn.edu.lingnan.domain.vo.CardsVo;
import cn.edu.lingnan.domain.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtmMapper {
    List<Atm> getAtmInfo();

    Atm getAtmInfoByAid(Integer id);

    UserVo inputUserInfo(String name, String password);

    List<Accounts> getAtmInfoByUser( Integer userId);

    List<CardsVo> getCashExchangeCard();

    Cards verifyBankCardPassword(String cardNumber, String cardPassword);

    UserVo getUsersByCardId(Integer ownerId);

    Accounts getAccountInfoById(Integer accountId);

    void withdraw(WthdrawDto wthdrawDto);

    void insertWithdrawLog(Logs logs);

    void insertReceipt(Receipts receipts);

    void deposit(DepositDto depositDto);

    List<Receipts> getReceiptsByAccountId(Integer accountId);

    Integer getBalanceByAccountId(Integer accountId);
}
